package com.dtsw.jx.conf;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.Properties;

public class ConfMessage {
    public ConfMessage(String path)  {
        Properties properties=new Properties();
        try {
            properties.load(Files.newInputStream(new File(path).toPath()));

        } catch (IOException e) {
            e.printStackTrace();
            System.out.println(e.getMessage());
        }
        String[] ips=properties.getProperty("client.ips").split(",");
        for (String ip : ips){
            System.out.println(ip);
        }

    }
}
